#ifndef FINGER_H
#define FINGER_H

#include <QGraphicsItem>
#include <QObject>
#include "keyinput.h"
#include "buffer.h"

 class Finger : public QObject, public QGraphicsItem
 {
     Q_OBJECT

public:
     Finger();

     QRectF boundingRect() const;
     QPainterPath shape() const;
     void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
                QWidget *widget);

protected:
    void timerEvent(QTimerEvent *event);

private:
    QColor color;
    KeyInput keyInput;
    Buffer buffer;
 };

#endif // FINGER_H
